dhcpv6: implement statistics for DHCPv6
authorNicolas BESNARD <nico.besnard31@gmail.com>
Wed, 20 Nov 2024 16:34:30 +0000 (16:34 +0000)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Mon, 3 Nov 2025 15:21:24 +0000 (16:21 +0100)
commitaf669fb23cd3b8090beda8bbeda0df57e92eb204
tree6ec4067877976251bbb0034c7aaee635280a2fa0
parent3a1a599fecb7b06f1a6847d5a4dc44c886c12f81
dhcpv6: implement statistics for DHCPv6

Problem:
    odhcp6c does not provide any statistics.

Solution:
    Count the number of packets transmitted or received by message type.
    Add a UBus RPC method to get this information.

Signed-off-by: Nicolas BESNARD <nico.besnard31@gmail.com>
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Link: https://github.com/openwrt/odhcp6c/pull/106
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
src/dhcpv6.c
src/odhcp6c.h
src/ubus.c